<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="__PUBLIC__/css/font.css">
    <link rel="stylesheet" href="__PUBLIC__/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-body">
<table class="layui-table" lay-skin="nob">
  <colgroup>
    <col width="150">
    <col width="200">
    <col>
  </colgroup>
  <thead>
    <tr>
      <th width="13%">库存</th>
      <th width="12%">重量</th>
      <th width="13%">名称</th>
      <th width="12%">单位</th>
      <th width="15%">进货价</th>
      <th width="22%">操作时间</th>
      <th width="30%">操作人</th>
    </tr> 
  </thead>
  <tbody>
  <foreach name="detail" item="vo">
    <tr>
      <td>
          <if condition="$vo['stock_type']">
            <span style="color:red;">+ {$vo.stock}</span>
          <else/>
            - {$vo.stock}
          </if>
      </td>
      <td>{$vo['stock'] / 1000}kg</td>
      <td>{$vo.goods_name}</td>
      <td>{$vo.unit}</td>
      <td>￥{$vo['goods_price'] / 100}</td>
      <td>{$vo.created_at}</td>
      <td>{$vo.user_name}</td>
    </tr>
</foreach>
  </tbody>
</table>
</div>

</body>

</html>